export default function useLoginTodo(userInfo) {
	//获取用户信息
	const checkedisLogin = () => {
		return new Promise((resolve) => {
			if (userInfo) {

				resolve(true)
			} else {
				uni.navigateTo({
					url: '/pages/userInfo/login/login'
				})
				resolve(false)
			}
		})
	}

	return {
		checkedisLogin,
	}
}